package kxfang.com.find.bean;

import android.text.TextUtils;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class FindListModel implements Serializable {

    /**
     * ID : string
     * RUserID : 0
     * ClassName : string
     * Title : string
     * LittleTitle : string
     * DateOfRegister : string
     * Mileage : string
     * IPrice : string
     * NewCarPrice : string
     * IsCarDealers : 0
     * Contacts : string
     * Phone : string
     * ViewCount : 0
     * CreateDate : 2020-07-28T09:15:41.035Z
     * ShareCount : 0
     * Location : string
     * HouseType : string
     * BuiltArea : 0
     * Floor : 0
     * AllFloor : 0
     * IsTransfer : 0
     * RentPrice : 0
     * PropertyFee : 0
     * PrepertyPer : string
     * Renovation : string
     * SupportingFacilities : string
     * IsShare : 0
     * IsGood : 0
     * imgs : [{"picurl":"string","imgClass":1,"ShowOrder":0}]
     * goodsList : [{"ID":0,"DiscoveryID":"string","NickName":"string","RUserID":0,"IsDelete":0,"Ctype":0,"CreateTime":"2020-07-28T09:15:41.035Z"}]
     */

    private String ID;
    private int RUserID;
    private String ClassName;
    private String ClassID;
    private String NickName;
    private String HeadUrl;
    private String Title;
    private String LittleTitle;
    private String DateOfRegister;
    private String Mileage;
    private String IPrice;
    private String NewCarPrice;
    private int IsCarDealers;
    private String Contacts;
    private String Phone;
    private int ViewCount;
    private String CreateDate;
    private int ShareCount;
    private String Location;
    private String HouseType;
    private double BuiltArea;
    private int Floor;
    private int AllFloor;
    private int IsTransfer;
    private double RentPrice;
    private double PropertyFee;
    private String PrepertyPer;
    private String Renovation;
    private String SupportingFacilities;
    private int IsShare;
    private int IsGood;
    private List<ImgsBean> imgs;
    private List<GoodsListBean> goodsList;
    private int PayState;//0 支付失败 1 支付成功
    private int State; //1 待支付 2 已失效 3 有效
    private int IsDelete;
    private String OrderNo;
    private String Lat;
    private String Lng;
    private String ShareTitle;
    private String ShareImg;
    private String ShareDesc;
    private String url ;

    private List<String> listOldcar=new ArrayList<>();
    private List<String> listXzp=new ArrayList<>();
    private List<String> listXzl=new ArrayList<>();
    private List<String> listQgxq=new ArrayList<>();


    public List<String> getListOldcar() {
        listOldcar.clear();
        if (!TextUtils.isEmpty(LittleTitle)) {
            listOldcar.add("品牌型号:" + LittleTitle);
        }
        if (!TextUtils.isEmpty(DateOfRegister)) {
            listOldcar.add("上牌年月:" + DateOfRegister);
        }
        if (!TextUtils.isEmpty(Mileage)) {
            listOldcar.add("行驶里程:" + Mileage+"公里");
        }
        if (!TextUtils.isEmpty(IPrice)) {
            listOldcar.add("卖价:" + IPrice+"元");
        }
        if (!TextUtils.isEmpty(NewCarPrice)) {
            listOldcar.add("新车价(含上户费):" + NewCarPrice+"元");
        }
        listOldcar.add(IsCarDealers == 0 ? "是否车商:个人" : "是否车商:车商");

        if (!TextUtils.isEmpty(Contacts)){
            listOldcar.add("联系人:" + Contacts);
        }
        return listOldcar;
    }

    public List<String> getListXzp() {
        listXzp.clear();
        if (!TextUtils.isEmpty(LittleTitle)) {
            listXzp.add("物品名称:" + LittleTitle);
        }
        if (!TextUtils.isEmpty(IPrice)) {
            listXzp.add("出售价格:" + IPrice+"元");
        }
        if (!TextUtils.isEmpty(Location)) {
            listXzp.add("所在地:" + Location);
        }
        if (!TextUtils.isEmpty(Contacts)){
            listXzp.add("联系人:" + Contacts);
        }
        return listXzp;
    }

    public List<String> getListXzl() {
        listXzl.clear();
        if (!TextUtils.isEmpty(LittleTitle)) {
            listXzl.add("名称:" + LittleTitle);
        }
        if (!TextUtils.isEmpty(HouseType)) {
            listXzl.add("类型:" + HouseType);
        }
        if (!TextUtils.isEmpty(String.valueOf(BuiltArea))) {
            listXzl.add("建筑面积:" + BuiltArea+"㎡");
        }
            listXzl.add("租金:" + RentPrice+"元");
        if (!TextUtils.isEmpty(String.valueOf(Floor))&&!TextUtils.isEmpty(String.valueOf(AllFloor))){
            String lc="第"+Floor+"层"+"，共"+AllFloor+"层";
            listXzl.add("楼层:" + lc);
        }
        if (!TextUtils.isEmpty(Renovation)){
            listXzl.add("装修情况:" + Renovation);
        }
        listOldcar.add(IsTransfer == 0 ? "是否转让:否" : "是否转让:是");

        listXzl.add("物业费:" + PropertyFee+"元/㎡·月");

        if (!TextUtils.isEmpty(SupportingFacilities )){
            listXzl.add("配套设施:" + SupportingFacilities);
        }

        if (!TextUtils.isEmpty(Contacts)){
            listXzl.add("联系人:" + Contacts);
        }
        return listXzl;
    }

    public List<String> getListQgxq() {
        listQgxq.clear();
        if (!TextUtils.isEmpty(LittleTitle)) {
            listQgxq.add("物品名称:" + LittleTitle);
        }
        if (!TextUtils.isEmpty(IPrice)) {
            listQgxq.add("期望价格:" + IPrice+"元");
        }
        if (!TextUtils.isEmpty(Location)) {
            listQgxq.add("所在地:" + Location);
        }
        if (!TextUtils.isEmpty(Contacts)){
            listQgxq.add("联系人:" + Contacts);
        }
        return listQgxq;
    }

    public int getIsDelete() {
        return IsDelete;
    }

    public void setIsDelete(int isDelete) {
        IsDelete = isDelete;
    }

    public String getShareTitle() {
        return ShareTitle;
    }

    public void setShareTitle(String shareTitle) {
        ShareTitle = shareTitle;
    }

    public String getShareImg() {
        return ShareImg;
    }

    public void setShareImg(String shareImg) {
        ShareImg = shareImg;
    }

    public String getShareDesc() {
        return ShareDesc;
    }

    public void setShareDesc(String shareDesc) {
        ShareDesc = shareDesc;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getID() {
        return ID;
    }

    public void setID(String ID) {
        this.ID = ID;
    }

    public int getRUserID() {
        return RUserID;
    }

    public void setRUserID(int RUserID) {
        this.RUserID = RUserID;
    }

    public String getNickName() {
        return NickName;
    }

    public void setNickName(String nickName) {
        NickName = nickName;
    }

    public String getHeadUrl() {
        return HeadUrl;
    }

    public void setHeadUrl(String headUrl) {
        HeadUrl = headUrl;
    }

    public String getClassName() {
        return ClassName;
    }

    public void setClassName(String ClassName) {
        this.ClassName = ClassName;
    }

    public String getTitle() {
        return Title;
    }

    public void setTitle(String Title) {
        this.Title = Title;
    }

    public String getLittleTitle() {
        return LittleTitle;
    }

    public void setLittleTitle(String LittleTitle) {
        this.LittleTitle = LittleTitle;
    }

    public String getDateOfRegister() {
        return DateOfRegister;
    }

    public void setDateOfRegister(String DateOfRegister) {
        this.DateOfRegister = DateOfRegister;
    }

    public String getMileage() {
        return Mileage;
    }

    public void setMileage(String Mileage) {
        this.Mileage = Mileage;
    }

    public String getIPrice() {
        return IPrice;
    }

    public void setIPrice(String IPrice) {
        this.IPrice = IPrice;
    }

    public String getNewCarPrice() {
        return NewCarPrice;
    }

    public void setNewCarPrice(String NewCarPrice) {
        this.NewCarPrice = NewCarPrice;
    }

    public int getIsCarDealers() {
        return IsCarDealers;
    }

    public void setIsCarDealers(int IsCarDealers) {
        this.IsCarDealers = IsCarDealers;
    }

    public String getContacts() {
        return Contacts;
    }

    public void setContacts(String Contacts) {
        this.Contacts = Contacts;
    }

    public String getPhone() {
        return Phone;
    }

    public void setPhone(String Phone) {
        this.Phone = Phone;
    }

    public int getViewCount() {
        return ViewCount;
    }

    public void setViewCount(int ViewCount) {
        this.ViewCount = ViewCount;
    }

    public String getCreateDate() {
        return CreateDate;
    }

    public void setCreateDate(String CreateDate) {
        this.CreateDate = CreateDate;
    }

    public int getShareCount() {
        return ShareCount;
    }

    public void setShareCount(int ShareCount) {
        this.ShareCount = ShareCount;
    }

    public String getLocation() {
        return Location;
    }

    public void setLocation(String Location) {
        this.Location = Location;
    }

    public String getHouseType() {
        return HouseType;
    }

    public void setHouseType(String HouseType) {
        this.HouseType = HouseType;
    }

    public double getBuiltArea() {
        return BuiltArea;
    }

    public void setBuiltArea(double BuiltArea) {
        this.BuiltArea = BuiltArea;
    }

    public int getFloor() {
        return Floor;
    }

    public void setFloor(int Floor) {
        this.Floor = Floor;
    }

    public int getAllFloor() {
        return AllFloor;
    }

    public void setAllFloor(int AllFloor) {
        this.AllFloor = AllFloor;
    }

    public int getIsTransfer() {
        return IsTransfer;
    }

    public void setIsTransfer(int IsTransfer) {
        this.IsTransfer = IsTransfer;
    }

    public double getRentPrice() {
        return RentPrice;
    }

    public void setRentPrice(double RentPrice) {
        this.RentPrice = RentPrice;
    }

    public double getPropertyFee() {
        return PropertyFee;
    }

    public void setPropertyFee(double PropertyFee) {
        this.PropertyFee = PropertyFee;
    }

    public String getPrepertyPer() {
        return PrepertyPer;
    }

    public void setPrepertyPer(String PrepertyPer) {
        this.PrepertyPer = PrepertyPer;
    }

    public String getRenovation() {
        return Renovation;
    }

    public void setRenovation(String Renovation) {
        this.Renovation = Renovation;
    }

    public String getSupportingFacilities() {
        return SupportingFacilities;
    }

    public void setSupportingFacilities(String SupportingFacilities) {
        this.SupportingFacilities = SupportingFacilities;
    }

    public int getIsShare() {
        return IsShare;
    }

    public void setIsShare(int IsShare) {
        this.IsShare = IsShare;
    }

    public int getIsGood() {
        return IsGood;
    }

    public void setIsGood(int IsGood) {
        this.IsGood = IsGood;
    }

    public List<ImgsBean> getImgs() {
        return imgs;
    }

    public void setImgs(List<ImgsBean> imgs) {
        this.imgs = imgs;
    }

    public List<GoodsListBean> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<GoodsListBean> goodsList) {
        this.goodsList = goodsList;
    }

    public int getPayState() {
        return PayState;
    }

    public void setPayState(int payState) {
        PayState = payState;
    }

    public int getState() {
        return State;
    }

    public void setState(int state) {
        State = state;
    }

    public String getOrderNo() {
        return OrderNo;
    }

    public void setOrderNo(String orderNo) {
        OrderNo = orderNo;
    }

    public String getClassID() {
        return ClassID;
    }

    public void setClassID(String classID) {
        ClassID = classID;
    }

    public String getLat() {
        return Lat;
    }

    public void setLat(String lat) {
        Lat = lat;
    }

    public String getLng() {
        return Lng;
    }

    public void setLng(String lng) {
        Lng = lng;
    }

    public static class ImgsBean implements Serializable {
        /**
         * picurl : string
         * imgClass : 1
         * ShowOrder : 0
         */

        private String picurl;
        private int imgClass;
        private int ShowOrder;

        public String getPicurl() {
            return picurl;
        }

        public void setPicurl(String picurl) {
            this.picurl = picurl;
        }

        public int getImgClass() {
            return imgClass;
        }

        public void setImgClass(int imgClass) {
            this.imgClass = imgClass;
        }

        public int getShowOrder() {
            return ShowOrder;
        }

        public void setShowOrder(int ShowOrder) {
            this.ShowOrder = ShowOrder;
        }
    }

    public static class GoodsListBean implements Serializable {
        /**
         * ID : 0
         * DiscoveryID : string
         * NickName : string
         * RUserID : 0
         * IsDelete : 0
         * Ctype : 0
         * CreateTime : 2020-07-28T09:15:41.035Z
         */

        private int ID;
        private String DiscoveryID;
        private String NickName;
        private int RUserID;
        private int IsDelete;
        private int Ctype;
        private String CreateTime;

        public int getID() {
            return ID;
        }

        public void setID(int ID) {
            this.ID = ID;
        }

        public String getDiscoveryID() {
            return DiscoveryID;
        }

        public void setDiscoveryID(String DiscoveryID) {
            this.DiscoveryID = DiscoveryID;
        }

        public String getNickName() {
            return NickName;
        }

        public void setNickName(String NickName) {
            this.NickName = NickName;
        }

        public int getRUserID() {
            return RUserID;
        }

        public void setRUserID(int RUserID) {
            this.RUserID = RUserID;
        }

        public int getIsDelete() {
            return IsDelete;
        }

        public void setIsDelete(int IsDelete) {
            this.IsDelete = IsDelete;
        }

        public int getCtype() {
            return Ctype;
        }

        public void setCtype(int Ctype) {
            this.Ctype = Ctype;
        }

        public String getCreateTime() {
            return CreateTime;
        }

        public void setCreateTime(String CreateTime) {
            this.CreateTime = CreateTime;
        }
    }
}
